<!doctype html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport"
          content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,Chrome=1"/>
    <meta http-equiv="X-UA-Compatible" content="IE=9"/>
    <link rel="stylesheet" href="../../../lib/layui/css/layui.css">
    <link rel="stylesheet" href="../../static/css/common.css">
    <link rel="stylesheet" href="../../static/css/settings.css">
    <title>系统设置</title>
</head>
<body>
<!--头部导航-->
<!--<header class="tophead" id="headerWrap"></header>-->
<!--主体-->
<div class="mainbody">
    <h3>系统参数设置</h3>
    <!--表格-->
    <div class="tables">
        <table lay-filter="setSystemTable" class="settingTable" lay-data="{id: 'sys-table'}"></table>
    </div>
</div>
<!--查询-->
<script type="text/html" id="searchParm">
    <div class="options">
        <form class="layui-form" action="#">
            <div class="infowrap">
                <div>
                    <span>参数名</span> <input type="text" class="style" name="confKey">
                </div>
                <div>
                    <span>参数值</span> <input type="text" class="style" name="confValue">
                </div>
            </div>
        </form>
    </div>
</script>
<!--查询/新增按钮-->
<script type="text/html" id="toolbarSystem">
    <div class="layui-btn-container">
        <!--        <button type="button" class="layui-btn layui-btn-normal layui-btn-sm searchBtn" lay-event="searchParms">查询</button>-->
        <button type="button" class="layui-btn layui-btn-normal layui-btn-sm" lay-event="addParms">新增</button>
    </div>
</script>
<!--新增弹框-->
<script type="text/html" id="newAdd">
    <div class="options">
        <form class="layui-form addParm" lay-filter="AddForm" action="#">
            <div class="infowrap">
                <div class="layui-form-item">
                    <label class="layui-form-label">参数名</label>
                    <div class="layui-input-inline">
                        <input type="text" class="layui-input" placeholder="以motor_开头" name="confKey">
                    </div>
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label">参数值</label>
                    <div class="layui-input-inline">
                        <textarea class="layui-textarea" name="confValue" placeholder="请输入"></textarea>
<!--                        <input type="text" class="layui-input" placeholder="请输入" name="confValue">-->
                    </div>
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label">参数描述</label>
                    <div class="layui-input-inline">
                        <textarea class="layui-textarea" name="confDesc" placeholder="参数的详细描述"></textarea>
                    </div>
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label">参数类别</label>
                    <div class="layui-input-inline">
                        <input type="radio" name="confCategory" value="USER" title="用户参数" checked>
                        <input type="radio" name="confCategory" value="SYS" title="系统参数">
                    </div>
                </div>
                <div class="layui-form-item">
                    <div class="fr">
                        <button class="layui-btn layui-btn-sm" lay-submit lay-filter="AddForm">确定</button>
                        <button type="cancel" class="layui-btn layui-btn-sm layui-btn-primary">取消</button>
                    </div>
                </div>
            </div>
        </form>
    </div>
</script>
<!--行操作-->
<script type="text/html" id="rowOperate">
    <div class=" layui-btn-group">
        <a class="layui-btn layui-btn-xs" lay-event="edit">编辑</a>
<!--        <a class="layui-btn layui-btn-danger layui-btn-xs" lay-event="del">删除</a>-->
    </div>
</script>
<!--行编辑弹窗-->
<script type="text/html" id="rowEdit">
    <div class="options">
        <form class="layui-form editParm" lay-filter="rowEditForm" action="#">
            <div class="infowrap">
                <div class="layui-form-item">
                    <label class="layui-form-label">id</label>
                    <div class="layui-input-inline">
                        <input type="text" class="layui-input" placeholder="请输入" name="id">
                    </div>
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label">参数名</label>
                    <div class="layui-input-inline">
                        <input type="text" class="layui-input" placeholder="以motor_开头" name="confKey">
                    </div>
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label">参数值</label>
                    <div class="layui-input-inline">
                        <textarea class="layui-textarea" name="confValue" placeholder="请输入"></textarea>
<!--                        <input type="text" class="layui-input" placeholder="请输入" name="confValue">-->
                    </div>
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label">参数描述</label>
                    <div class="layui-input-inline">
                        <textarea class="layui-textarea" name="confDesc" placeholder="参数的详细描述"></textarea>
                    </div>
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label">参数类别</label>
                    <div class="layui-input-inline">
                        <input type="radio" name="confCategory" value="USER" title="用户参数" checked>
                        <input type="radio" name="confCategory" value="SYS" title="系统参数">
                    </div>
                </div>
                <div class="layui-form-item">
                    <div class="fr">
                        <button class="layui-btn layui-btn-sm" lay-submit lay-filter="rowEditForm">确定</button>
                        <button type="cancel" class="layui-btn layui-btn-sm layui-btn-primary">取消</button>
                    </div>
                </div>
            </div>
        </form>
    </div>
</script>

<script src="../../../lib/layui/layui.js"></script>
<script src="../../static/js/common.js"></script>
<script src="../../static/js/file/sys-setting.js"></script>
</body>
</html>
